package com.qjl.shopping.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Author liguanghui
 * @Date 2023/5/3
 */
@Data
@TableName("account")
public class Account {
    @TableId(value = "account_id", type = IdType.AUTO)
    private int id;
    @TableField("account_name")
    private String name;
    @TableField("account_status")
    private String status;
    @TableField("account_user_id")
    private int userId;
    @TableField("account_game_id")
    private int gameId;

    @TableField(exist = false)
    private Game game;
    @TableField(exist = false)
    private User user;
}
